<#-- 这是一个分页文件 
	1.在需要分页的下面 添加 <#include "相对路径"> 就行了
	2.在后台向发送数据的时候，格式如下：request.setAttribute("page",object); 

-->
					<div class="list-page">
					<#if page.isFirstPage()>
							<a href="#" aria-label="Previous">
							<span aria-hidden="true">&laquo;</span>
							</a>
					</#if>
					<#if !page.isFirstPage()>
							<a href="?pagenum=${page.pageNumber-1}" aria-label="Previous">
							<span aria-hidden="true">&laquo;</span>
							</a>
					</#if>
					<#assign startpage = (page.pageNumber -4)>
					<#assign endpage = (page.pageNumber +4)>
					<#if ((page.pageNumber +4)>page.totalPage)>
						<#assign startpage  = page.totalPage-8>
						<#assign endpage  = page.totalPage>
					</#if>
					<#if ((page.pageNumber -1)<4)>
						<#assign startpage  = 1>
						<#assign endpage  = 9>
					</#if>
					<#if (page.totalPage <9)>
						<#assign startpage  = 1>
						<#assign endpage  = page.totalPage>
					</#if>
					<#list startpage..endpage as index>
						<#if index != page.pageNumber>
							<a href="?pagenum=${index}">${index}</a>
						</#if>
						<#if index = page.pageNumber>
							<a class="current" href="?pagenum=${index}">${index}</a>
						</#if>
					</#list>
					<#if page.isLastPage()>
						<a href="#" aria-label="Next">
							<span aria-hidden="true">&raquo;</span>
						</a>
					</#if>
					<#if !page.isLastPage()>
							<a href="?pagenum=${page.pageNumber+1}" aria-label="Next">
								<span aria-hidden="true">&raquo;</span>
							</a>
					</#if>
					</div>
					<div class="list-page">
						<span class="label label-primary">当前页：${page.pageNumber}</span>
						<span class="label label-primary">每页显示：${page.pageSize}</span>
						<span class="label label-primary">总的记录数：${page.totalRow}</span>
						<span class="label label-primary">总页数：${page.totalPage}</span>
					</div>
